home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SGI Networker 4.2.9
/
Networker 4.2.9 for IRIX 6.2, 6.3 and 6.4.img
/
dist
/
networker4.idb
/
etc
/
init.d
/
networker.z
/
networker
Wrap
Text File
|
1997-07-08
|
1KB
|
63 lines
#!/bin/sh
#
# Startup script for IRIS NetWorker Clients and Servers
#
CONFIG=/etc/config
IS_ON=/etc/chkconfig
# The verbose flag controls the printing of the names of daemons as they
# are started
if $IS_ON verbose ; then
ECHO=echo
VERBOSE=-v
else # For a quiet startup and shutdown
ECHO=:
VERBOSE=
fi
case "$1" in
'stop')
if $IS_ON networker ; then
$ECHO 'Stopping NetWorker daemons: \c'
$ECHO 'asavegrp ansrd savegrp \c'
killall -HUP -k 1 asavegrp ansrd savegrp
$ECHO 'nsrd nsrindexd nsrmmd nsrmmdbd nsrexecd rapd rapcheck\c'
killall -HUP -k 2 \
nsrd nsrindexd nsrmmd nsrmmdbd nsrexecd rapd rapcheck
if test -x /usr/etc/nsrd ; then
if test -x /usr/etc/nsradmin ; then
/usr/etc/nsradmin -f /nsr/res/nsr.res -i - \
<< EOF > /dev/null
. type: nsr group
update work list: ; interlock: ; completion:
EOF
fi
fi
$ECHO '.'
fi
;;
'start')
if $IS_ON networker ; then
$ECHO 'NetWorker daemons:\c'
if test -x /usr/etc/nsrd ; then
/usr/etc/nsrd >/dev/console 2>&1
$ECHO ' nsrd\c'
fi
if test -x /usr/etc/nsrexecd ; then
/usr/etc/nsrexecd >/dev/console 2>&1
$ECHO ' nsrexecd\c'
fi
$ECHO '.'
fi
;;
*)
echo "usage: $0 {start|stop}"
;;
esac
exit 0